// import Vue from 'vue'
import Router from 'vue-router'
const home=resolve => require(['../components/page/home.vue'], resolve);
const litemPage=resolve => require(['../components/page/litemPage.vue'], resolve);
const newhome=resolve => require(['../components/page2/home.vue'], resolve);
const newlitemPage=resolve => require(['../components/page2/litemPage.vue'], resolve);

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:'/newhome'
    },
    {
      path: '/home',
      name: 'home',
      component: home,
      meta:{
        title:'淘金金'
      }
    },
    {
      path: '/litemPage',
      name: 'litemPage',
      component: litemPage,
      meta:{
        title:'详情'
      }
    },
    {
      path: '/newhome',
      name: 'newhome',
      component: newhome,
      meta:{
        title:'淘金金'
      }
    },
    {
      path: '/newlitemPage',
      name: 'newlitemPage',
      component: newlitemPage,
      meta:{
        title:'详情'
      }
    }
  ]
})
